package models

import "gorm.io/gorm"

type Good struct {
	gorm.Model
	Title   string  `gorm:"type:varchar(50);not null;"`
	Price   float64 `gorm:"type:decimal(10,2);not null;"`
	Num     int64   `gorm:"type:int(10);not null;"`
	ClassId int64   `gorm:"type:int(10);not null;"`
}

type Class struct {
	gorm.Model
	ClassName string `gorm:"type:varchar(30);not null;"`
}
